Repository navigation
Account data export; owner handles old deletion requests; patch functions deps - #142
Merged
Merged
Conversation
… functions deps
- GET /api/account/export (signed in): everything the server holds about the
caller as one JSON file: Auth record, users/{uid} and its subcollections,
usage, requests and reports they filed, waitlist entry, memberships,
personal monitors, deadlines and API keys (key secrets and pairing keys
redacted). Deck Settings > Data > Your account data > Download.
- Owner-only /api/admin/deletions: lists deletionRequests filed before
self-service existed and runs the same full deletion for one of them. Only
an account with a request doc can be deleted this way. The request doc is
now removed last, after the sign-in, so a failed run can be retried. Admin
panel gets an "Account deletion requests" section.
- Deletion steps moved into deleteAccountData(), shared by both routes.
- functions/: overrides glob ^14.0.2 and fast-xml-parser ^5.12.0 (Dependabot
alerts; functions/ is not deployed).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #141.
Account data export.
GET /api/account/exportreturns everything Darknode's servers hold about the caller as one JSON file:users/{uid}and its subcollections;Pairing keys and key secrets are redacted. The security graph already has its own export, so the file points to it. In the UI: Deck Settings > Data > Your account data > Download. Privacy text updated.
Old deletion requests. Before #141,
deletionRequestsdocs had no reader. A new owner-only/api/admin/deletionslists them and carries out one deletion, using the same steps users run themselves. It only works for an account that has a request doc. The admin panel gets an "Account deletion requests" section. The request doc is now deleted last, after the sign-in, so a failed run can be retried.Dependabot.
functions/overridesglob ^14.0.2andfast-xml-parser ^5.12.0. Firebase Admin, Firebase Functions, rimraf and index.js still load. functions/ is not deployed.Verified
npm test: 5178 passed, with 4 new tests: export contents and redaction, Firestore value decoding, admin list/delete only for accounts that asked, and a failed run keeping the request doc./api/account/delete.Not tested: the admin list and delete with the owner's token (I have none). The Deck Download button was not clicked (needs a verified account; same api() helper as the tested route).